﻿namespace UFSoft.UBF.Cust.ClassView.MVC.UI
{
    /// <summary>
    ///     参照字段DTO
    /// </summary>
    public class RefFieldDTO
    {
        /// <summary>
        ///     名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///     显示名称
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        ///     参照属性名称
        /// </summary>
        public string RefAttributeName { get; set; }

        /// <summary>
        ///     是否可见
        /// </summary>
        public bool IsVisible { get; set; }

        /// <summary>
        ///     是否主键字段
        /// </summary>
        public bool IsKey { get; set; }

        /// <summary>
        ///     是否输入字段
        /// </summary>
        public bool IsEdit { get; set; }

        /// <summary>
        ///     是否名称显示字段
        /// </summary>
        public bool IsName { get; set; }

        /// <summary>
        ///     显示顺序
        /// </summary>
        public int Sequence { get; set; }

        /// <summary>
        ///     长度
        /// </summary>
        public int Length { get; set; }

        /// <summary>
        ///     父字段
        /// </summary>
        public bool IsParent { get; set; }
    }
}